//
//  MapViewController.h
//  Paparazzi
//
//  Created by Eric Williams on 11/6/10.
//  Copyright 2010 Eric Williams. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "FlickrAnnotation.h"
#import "FlickrFetcher.h"
#import "Photo.h"

@interface MapViewController : UIViewController <MKMapViewDelegate, UIPickerViewDelegate, UIPickerViewDataSource> {
	IBOutlet MKMapView * mapView;
	IBOutlet UIPickerView * userPickerView;
	IBOutlet UILabel * userLabel;
	IBOutlet UIImageView * userLabelBG;
	IBOutlet UIButton * okButton;
	
	FlickrFetcher * flickrFetcher;
	
	NSMutableArray * mapAnnotations;
	NSArray * people;
	Photo * currentPhoto;
	NSString * currentPersonString;
}

@property (nonatomic, retain) IBOutlet MKMapView * mapView;
@property (nonatomic, retain) IBOutlet UIPickerView * userPickerView;
@property (nonatomic, retain) IBOutlet UILabel * userLabel;
@property (nonatomic, retain) IBOutlet UIImageView * userLabelBG;
@property (nonatomic, retain) IBOutlet UIButton * okButton;

@property (nonatomic, retain) FlickrFetcher * flickrFetcher;

@property (nonatomic, retain) NSMutableArray * mapAnnotations;
@property (nonatomic, retain) NSArray * people;
@property (nonatomic, retain) Photo * currentPhoto;
@property (nonatomic, retain) NSString * currentPersonString;

+ (CGFloat)annotationPadding;
+ (CGFloat)calloutHeight;

- (void) userPickerButtonPressed;
- (IBAction) userConfirmButtonPressed;
- (void) refreshAnnotations;

@end
